//
//  EntrustPurchaseViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/14.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "EntrustPurchaseViewController.h"
#import "EntrustPurchaseViewModel.h"
#import "ProductNameViewController.h"
#import "EntrusOkViewController.h"

@interface EntrustPurchaseViewController ()<EnturstPurDelegate>
@property (nonatomic,strong)EntrustPurchaseViewModel * entrustViewModel;
@end

@implementation EntrustPurchaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"委托求购";
    self.entrustViewModel = [[EntrustPurchaseViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    self.entrustViewModel.delegate = self;
}

#pragma mark -- EnturstPurDelegate
-(void)pictureAction:(GLGWImageView *)p_ImageView{//图片c选择
    
}

-(void)tableSelect:(NSInteger)s_row{
    ProductNameViewController * productVC = [ProductNameViewController new];
    productVC.publish_Type = s_row-1;
    productVC.Block_PubModel = ^(PublishListModel_Data * _Nonnull p_dataModel) {
        
    };
    [self.navigationController pushViewController:productVC animated:YES];
}

-(void)enturstUpDown{
    EntrusOkViewController * upDownVC = [EntrusOkViewController new];
    [self.navigationController pushViewController:upDownVC animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
